digraph all_service {
	edge [fontname="Microsoft YaHei"];
    node [shape=box,fontname="Microsoft YaHei"]
 
 	<#list envs as env>

subgraph cluster_env_${env.name}{
   node [color="Lavender"]
   label="${env.name}"
   		<#list env.hosts as host>
   			<#if host.publicAccess>
   				<#assign peripheries=2>
   			<#else>
   				<#assign peripheries=1>
   			</#if>
   			<#if host.storage>
    			<#assign shape="octagon">
    		<#else>
    			<#assign shape="box">
    		</#if>
    		<#if host.vm>
    			<#assign style="rounded,filled">
    		<#else>
    			<#assign style="filled">
    		</#if> 
   "${host.name}"[label = "${host.title}",shape="${shape}",peripheries="${peripheries}",style="${style}"]		
   		</#list>
} 		
 	
 	</#list>
 	
 	
 
}